package com.superbook.mw;

import com.superbook.dao.InitialRestaurantRegistrationDAO;
import com.superbook.dao.pojos.InitialRestRegistrationPOJO;
import com.superbook.mw.to.InitialRestaurantRegistrationTO;

public class InitialRestaurantRegistrationBP {
	
	private InitialRestaurantRegistrationDAO initialRestRegistrtionDAO;
	
	
	/**
	 * @param initialRestRegistrtionDAO the initialRestRegistrtionDAO to set
	 */
	public void setInitialRestRegistrtionDAO(
			InitialRestaurantRegistrationDAO initialRestRegistrtionDAO) {
		this.initialRestRegistrtionDAO = initialRestRegistrtionDAO;
	}


	public InitialRestaurantRegistrationTO saveRegistration(InitialRestaurantRegistrationTO registrationTO){
		InitialRestRegistrationPOJO restRegistrationPOJO = new InitialRestRegistrationPOJO();
		restRegistrationPOJO.setArea(registrationTO.getArea());
		restRegistrationPOJO.setCity(registrationTO.getCity());
		restRegistrationPOJO.setContactNumber(registrationTO.getContactNumber());
		restRegistrationPOJO.setEmail(registrationTO.getEmail());
		restRegistrationPOJO.setManagerName(registrationTO.getManagerName());
		restRegistrationPOJO.setIsCorporateDiscount(registrationTO.getIsCorporateDiscount());
		initialRestRegistrtionDAO.saveRestRegistration(restRegistrationPOJO);
		
		return null;
	}

}
